package com.song.JavaThread_ch3_2;

public class Job implements Runnable{
	
	private PrintQueue printQueue;
	
	
	
	public Job(PrintQueue printQueue) {
		super();
		this.printQueue = printQueue;
	}



	public void run() {
		System.out.printf(" %s : Going to print a job \n" ,Thread.currentThread().getName());
		printQueue.printJob(new Object());
		System.out.printf(" %s : the document has been printed \n " ,Thread.currentThread().getName());
	
	}

}
